<?php



class TransactionDataMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TransactionDataMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('transaction_data');
		$tMap->setPhpName('TransactionData');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('STATUS_ID', 'StatusId', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('STATE_ID', 'StateId', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CUSTOMER_ID', 'CustomerId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('IP', 'Ip', 'string', CreoleTypes::VARCHAR, false, 32);

		$tMap->addColumn('RECEIPT_ID', 'ReceiptId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('ORDER_ID', 'OrderId', 'string', CreoleTypes::VARCHAR, false, 32);

		$tMap->addColumn('REQUESTED_AMOUNT_CT', 'RequestedAmountCt', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('REQUESTED_CURRENCY_CODE', 'RequestedCurrencyCode', 'string', CreoleTypes::VARCHAR, false, 8);

		$tMap->addColumn('PAID_AMOUNT_CT', 'PaidAmountCt', 'string', CreoleTypes::VARCHAR, false, 8);

		$tMap->addColumn('PAID_CURRENCY_CODE', 'PaidCurrencyCode', 'string', CreoleTypes::VARCHAR, false, 8);

		$tMap->addColumn('SIGN_PASSWORD', 'SignPassword', 'string', CreoleTypes::VARCHAR, false, 64);

		$tMap->addColumn('TRANSACTION_ID', 'TransactionId', 'string', CreoleTypes::VARCHAR, false, 128);

		$tMap->addColumn('PROJECT_ID', 'ProjectId', 'string', CreoleTypes::VARCHAR, false, 16);

		$tMap->addColumn('PROJECT', 'Project', 'string', CreoleTypes::VARCHAR, false, 128);

		$tMap->addColumn('PAYTEXT', 'Paytext', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('RETURNED_SS2', 'ReturnedSs2', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('RETURNED_ERROR', 'ReturnedError', 'string', CreoleTypes::VARCHAR, false, 64);

		$tMap->addColumn('RETURNED_STATUS', 'ReturnedStatus', 'string', CreoleTypes::VARCHAR, false, 8);

		$tMap->addColumn('IS_TEST', 'IsTest', 'string', CreoleTypes::VARCHAR, false, 8);

		$tMap->addColumn('DATA_JSON', 'DataJson', 'string', CreoleTypes::VARCHAR, false, 1024);

		$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('APPROVED_AT', 'ApprovedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 